package com.zhaowf;

import com.spring.ZhaoWFApplicationContext;
import com.zhaowf.service.UserService;

public class Test {
    public static void main(String[] args) {
        ZhaoWFApplicationContext context = new ZhaoWFApplicationContext(AppConfig.class);

        System.out.println(context.getBean("userService"));
        System.out.println(context.getBean("userService"));
        System.out.println(context.getBean("userService"));
        UserService bean = (UserService) context.getBean("userService");
        bean.test();
    }
}
